package cn.iocoder.yudao.framework.common.enums;

import cn.iocoder.yudao.framework.common.core.ArrayValuable;
import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Arrays;

/**
 * 收发类型枚举
 *
 * @author 芋道源码
 */
@Getter
@AllArgsConstructor
public enum CommonSflxEnum implements ArrayValuable<Integer> {
//   1-我收，2-我寄
    WS(1, "我收"),
    WJ(2, "我寄");

    public static final Integer[] ARRAYS = Arrays.stream(values()).map(CommonSflxEnum::getStatus).toArray(Integer[]::new);

    /**
     * 状态值
     */
    private final Integer status;
    /**
     * 状态名
     */
    private final String name;

    @Override
    public Integer[] array() {
        return ARRAYS;
    }

}
